#!/bin/sh

mkdir -p ~/opt/mysql/data

docker rm -f mysql
docker run -d --name mysql --restart always \
  -p 3306:3306 \
  -v ~/opt/mysql/data:/var/lib/mysql \
  -v /etc/localtime:/etc/localtime \
  -e MYSQL_ROOT_PASSWORD=5EYgTHtHUinLWfY8PcGo \
  mysql:8.0.40


docker run -d --name mysql --restart unless-stopped \
  -p 3306:3306 \
  -v ~/opt/mysql:/var/lib/mysql \
  -v /etc/localtime:/etc/localtime \
  -e MYSQL_ROOT_PASSWORD=AiZZjQ3Rmn4jupscxzCk \
  docker.1ms.run/bitnami/mysql:8.0.40